import os
from glob import glob
from setuptools import find_packages, setup

package_name = 'joystick_alphadog_with_so101_servo'

setup(
    name=package_name,
    version='0.0.0',
    packages=find_packages(exclude=['test']),
    data_files=[
        ('share/ament_index/resource_index/packages',
            ['resource/' + package_name]),
        ('share/' + package_name, ['package.xml']),
        # 这行代码会找到 launch 目录下的所有 .launch.py 文件并安装它们
        (os.path.join('share', package_name, 'launch'), glob(os.path.join('launch', '*.launch.py'))),
        (os.path.join('share', package_name, 'config'), glob('config/*.yaml')),
    ],
    install_requires=['setuptools'],
    zip_safe=True,
    maintainer='xqw',
    maintainer_email='wuxiaoqiang.rtos@huawei.com',
    description='Unified joystick controller for AlphaDog and SO101 Arm.',
    license='TODO: License declaration',
    tests_require=['pytest'],
    entry_points={
        'console_scripts': [
            'unified_joy_controller = joystick_alphadog_with_so101_servo.unified_joy_controller:main',
            'ledog_zmq_host = joystick_alphadog_with_so101_servo.ledog_zmq_host_node:main',
            'so101_leader_follower_bridge = joystick_alphadog_with_so101_servo.leader_follower_bridge:main',
        ],
    },
)